from camera import *
from gameobject import *
from entity import *
from layer import *
from maps import *
from tile import *

DEFAULT_TILE_WIDTH=32
DEFAULT_TILE_HEIGHT=32

def MapToScreen(mapposition):
    """convert map coordinates to screen coordinates\n
    mapposition - e.g. (0,0)"""
    return (mapposition[0]*DEFAULT_TILE_WIDTH, mapposition[1]*DEFAULT_TILE_HEIGHT)

def ScreenToMap(screenposition):
    """convert screen coordinates to map coordinates"""
    return (screenposition[0]/DEFAULT_TILE_WIDTH, screenposition[1]/DEFAULT_TILE_HEIGHT)
